package sk.fiit.vppj.eventmanager.data;

/**
 * Data class, which represents user role Supervisor. Extends class User. The class is immutable.
 * @author Marek
 *
 */
public final class Supervisor extends User {

	public Supervisor(int id) {
		super( id, "supervisor" );
	}

	/**
	 * Method return Organization to which this supervisor belongs
	 * 
	 * @return instance of Organization
	 */
	public Organization getOrganization() {
		return new Organization( Integer.parseInt( data.get( "organization_id" ).toString() ) );
	}
}
